FROM kaezarrex/python-nodejs

RUN apt-get -qq update && apt-get install -y git

RUN rm -fr /app && git clone --depth=1 https://git.oschina.net/code2life/NodeProxy.git /app

WORKDIR /app
RUN git pull && mkdir /app/logs

RUN npm install

EXPOSE 80

ENTRYPOINT ["npm","start"]